import java.util.Scanner;

public class Main1061 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        boolean flag=true;
        int s=0;
        for (int i=2; i <n;i++ ){
            if (n%i==0){
                flag=false;
                s=i;
                break;
            }
        }
        if (flag){
            System.out.println("Yes");
        }else {
            System.out.println(s);
        }
    }
}
